title {King by Jeff Sieu. Made for Google Code-in 2017}
units mm
put {bottomtor.s} tor V {0 0 9}  H {6.12323399573676603586882E-17 0 1}  r_a 11.78466675885103676080234 r_h 3.825815710827906279689614
put {bottometo.s} eto V {0 0 20}  N {0 0 0.06032399549610674427402301}  C {2.864077970686895735497046 1.71612229850775266370988 1.889299368274914403542653}  r 8.344052226122400384156208 r_d 1.673109642593672896637713
put {crossbase.s} arb8 V1 {-1.399999999999999911182158 -2.100000000000000088817842 98.5}  V2 {-1.399999999999999911182158 2.100000000000000088817842 98.5}  V3 {1.399999999999999911182158 2.100000000000000088817842 98.5}  V4 {1.399999999999999911182158 -2.100000000000000088817842 98.5}  V5 {-1.399999999999999911182158 -3 94}  V6 {-1.399999999999999911182158 3 94}  V7 {1.399999999999999911182158 3 94}  V8 {1.399999999999999911182158 -3 94} 
put {crossrpp2.s} arb8 V1 {1.399999999999999911182158 -5.5 97.84354270490985072683543}  V2 {1.399999999999999911182158 5.5 97.84354270490985072683543}  V3 {1.399999999999999911182158 5.5 102.5708639999999007841325}  V4 {1.399999999999999911182158 -5.5 102.5708639999999007841325}  V5 {-1.399999999999999911182158 -5.5 97.84354270490985072683543}  V6 {-1.399999999999999911182158 5.5 97.84354270490985072683543}  V7 {-1.399999999999999911182158 5.5 102.5708639999999007841325}  V8 {-1.399999999999999911182158 -5.5 102.5708639999999007841325} 
put {crossrpp1.s} arb8 V1 {1.399999999999999911182158 -2 93.79999999999999715782906}  V2 {1.399999999999999911182158 2 93.79999999999999715782906}  V3 {1.399999999999999911182158 2 104.7999999999999971578291}  V4 {1.399999999999999911182158 -2 104.7999999999999971578291}  V5 {-1.399999999999999911182158 -2 93.79999999999999715782906}  V6 {-1.399999999999999911182158 2 93.79999999999999715782906}  V7 {-1.399999999999999911182158 2 104.7999999999999971578291}  V8 {-1.399999999999999911182158 -2 104.7999999999999971578291} 
put {crowncut1.s} eto V {0 0 81.72700899999993850997271}  N {0 0 0.6853489141366997383642001}  C {7.936978064717960634766314 0.7583105325216803471732874 14.21238543732845016620558}  r 19.09763828673395735791019 r_d 8.357084880198749843316364
put {crossrcc2.s} tgc V {0 0 90.50940899999976352319209}  H {0 0 3.460360060764851031223088}  A {5.74552092081112419919009 0 0}  B {0 5.74552092081112419919009 0}  C {5.74552092081112419919009 0 0}  D {0 5.74552092081112419919009 0} 
put {crosscap1.s} arb8 V1 {1.399999999999999911182158 -2 104.7999999999999971578291}  V2 {1.399999999999999911182158 2 104.7999999999999971578291}  V3 {-1.399999999999999911182158 2 104.7999999999999971578291}  V4 {-1.399999999999999911182158 -2 104.7999999999999971578291}  V5 {1.399999999999999911182158 0 106.7999999999999971578291}  V6 {1.399999999999999911182158 0 106.7999999999999971578291}  V7 {-1.399999999999999911182158 0 106.7999999999999971578291}  V8 {-1.399999999999999911182158 0 106.7999999999999971578291} 
put {crossrcc1.s} tgc V {0 0 92.2746839999997803261067}  H {0 0 2.791740440327786565433144}  A {4.517371551035873622481631 0 0}  B {0 4.517371551035873622481631 0}  C {4.517371551035873622481631 0 0}  D {0 4.517371551035873622481631 0} 
put {crowntop.s} ell V {0 0 89.56678299999987302726367}  A {14.0447366829880344596404 0 0}  B {0 14.44069976610209771195059 0}  C {0 0 3.638257540532901401775234} 
put {crownrcc.s} tgc V {0 0 74.52245129853007199471904}  H {0 0 15.07198012589280011752635}  A {14.92710113237911251360401 0 0}  B {0 14.92710113237911251360401 0}  C {14.92710113237911251360401 0 0}  D {0 14.92710113237911251360401 0} 
put {bodytor.s} tor V {0 0 25}  H {6.12323399573676603586882E-17 0 1}  r_a 9.461224391138355116481762 r_h 0.9710977822416242410952236
put {bodyjut.s} ell V {0 0 63.05140500000015180148694}  A {13.30005660511547738167337 0 0}  B {0 13.30005660511547738167337 0}  C {0 0 3.569547284150617283415841} 
put {bodycut.s} tor V {0 0 52.17296999999997808572516}  H {6.12323399573676603586882E-17 0 1}  r_a 107.7000000000000028421709 r_h 101.8122462061219977158544
put {necktor.s} tor V {0 0 75.48642500000005384208634}  H {3.061616997868383634231992E-16 0 1}  r_a 8.239894264539179502548905 r_h 0.9722303169289367996697138
put {baseeto.s} eto V {0 0 5}  N {-5.470978323999804257192075E-18 0 -0.04467392825269222295103688}  C {9.315747832292275987242647 -1.365449293915910411456593 -4.391804451322707691929281}  r 10.59850529883725656077331 r_d 4.265499428605880716247611
put {necketo.s} eto V {4.688718984760806702037463E-15 0 73.78394899999960898639983}  N {-6.414480946927261832397496E-18 0 -0.05237821183539019542774184}  C {-3.419547585807252154666003 2.04895324878489937248105 -2.255716904279041923331306}  r 6.983691090436433768218194 r_d 1.738855162288100331124951
put {bottom.c} comb region no tree {u {u {l bottometo.s} {l bottomtor.s}} {u {l baseeto.s} {l base_filler.s}}}
put {cross.c} comb region no tree {u {u {u {l crossbase.s} {l crosscap1.s}} {u {l crossrpp1.s} {l crossrpp2.s}}} {u {l crossrcc1.s} {l crossrcc2.s}}}
put {crown.c} comb region no tree {u {- {l crownrcc.s} {l crowncut1.s}} {- {l crowntop.s} {l crownrcc.s}}}
attr set {crown.c} {inherit} {1}
put {scene.g} comb region no tree {u {l king.r} {l tile.r}}
put {body.s} tgc V {0 0 5.912562917080187219198706}  H {0 0 69.67849364592308347710059}  A {14.1579783735264754795935 0 0}  B {0 14.1579783735264754795935 0}  C {14.1579783735264754795935 0 0}  D {0 14.1579783735264754795935 0} 
put {tile.s} arb8 V1 {28.5 -28.5 0}  V2 {28.5 28.5 0}  V3 {28.5 28.5 -1}  V4 {28.5 -28.5 -1}  V5 {-28.5 -28.5 0}  V6 {-28.5 28.5 0}  V7 {-28.5 28.5 -1}  V8 {-28.5 -28.5 -1} 
put {king.r} comb region yes tree {l king.c {1 0 0 0  0 1 0 0  0 0 1 0.960356  0 0 0 1}}
attr set {king.r} {region} {R} {shader} {plastic {re 0.1 sp 0.9 di 0.1 sh 50 ex 1}} {region_id} {1000} {material_id} {1} {los} {100} {color} {255/255/217}
put {tile.r} comb region yes tree {l tile.s}
attr set {tile.r} {region} {R} {shader} {plastic {re 0.5 sh 1}} {region_id} {1000} {material_id} {1} {los} {100} {color} {255/255/255}
put {body.c} comb region no tree {u {u {- {l body.s} {l bodycut.s}} {l bodytor.s}} {l bodyjut.s}}
put {king.c} comb region no tree {u {u {u {l cross.c} {l neck.c}} {u {l crown.c} {l body.c}}} {l bottom.c}}
put {neck.c} comb region no tree {u {u {l necketo.s} {l necktor.s}} {l neck_filler.s}}
put {base_filler.s} tgc V {0 0 -0.8138631382182293094729175}  H {0 0 12.74035922868059600432389}  A {16.38855503646686528895771 0 0}  B {0 16.38855503646686528895771 0}  C {9.863417071382475143082047 0 0}  D {0 4.931708535691237571541023 0} 
put {neck_filler.s} tgc V {0 0 72.44353981907315187527274}  H {0 0 8.98374965637291111875129}  A {7.656920043513968821002891 0 0}  B {0 7.656920043513968821002891 0}  C {7.142477262139500737703202 0 0}  D {0 7.142477262139500737703202 0} 
